package com.afei.TogetherNavigation;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;


import com.afei.TogetherNavigation.Navigation.Navigation;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    private Button mBtnGoin;

    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        //隐藏顶部标签栏
        getSupportActionBar().hide();
    }

    private void initView() {


        mBtnGoin = findViewById(R.id.goin);


        mBtnGoin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

            case R.id.goin:
                startActivity(new Intent(MainActivity.this, Navigation.class));
                break;
            default:
                break;
        }
    }
}
